<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/static/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/static/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" type="text/css" href="/static/css/ionicons.min.css" />
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/adminlte/dist/css/AdminLTE.min.css">
		<title></title>
	</head>
	<body>

<section class="content">
      <div class="row">
		<div class="col-xs-12">
		          <div class="nav-tabs-custom">
		            <ul class="nav nav-tabs">
		              <li><a href="{:url('nav/index')}">导航管理</a></li>
		              <li class="active"><a href="{:url('nav/add')}">添加导航</a></li>
		            </ul>
		            <div class="tab-content">
							<form class="form-horizontal" id="myform" action="{:url('nav/save')}" method="post">
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">上级导航</label>
			                        <div class="col-sm-10">
			                            <select name="pid" class="form-control">
			                                <option value="0">一级导航</option>
			                                {foreach name="nav_level_list" item="vo"}
			                                <option value="{$vo.id}" {if condition="$pid==$vo.id"} selected="selected"{/if}>{neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo['level'];$i++){echo ' ----';}{/php}{/neq} {$vo.name}</option>
			                                {/foreach}
			                            </select>
			                        </div>
			                    </div>								
								
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">导航名称</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="name" value=""  placeholder="请输入导航名称" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">别名</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="alias" value="" placeholder="（选填）请输入导航别名" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">链接</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="link" value="" placeholder="（选填）请输入导航链接" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">图标</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="icon" value="" placeholder="（选填）如：fa fa-home" class="form-control">
			                        </div>
			                    </div>
				                <div class="form-group">
				                	<label class="col-sm-2 control-label">状态</label>
				                	<div class="col-sm-10">
										<label class="radio-inline">
										  <input type="radio" name="status" value="1" checked="checked"> 显示
										</label>
										<label class="radio-inline">
										  <input type="radio" name="status" value="0"> 隐藏
										</label>				                		
				                	</div>                            
				                </div>
				                <div class="form-group">
				                	<label class="col-sm-2 control-label">打开方式</label>
				                	<div class="col-sm-10">
										<label class="radio-inline">
										  <input type="radio" name="target" value="_self" checked="checked"> 默认
										</label>
										<label class="radio-inline">
										  <input type="radio" name="target" value="_blank"> 新窗口
										</label>				                		
				                	</div>                            
				                </div>		                
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">排序</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="sort" value="0" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
				                	<div class="col-sm-offset-2 col-sm-10">
					                	<button type="button" id="sub" class="btn btn-primary">提交</button>
				                	</div>
			                    </div>
			                </form>
		            </div><!-- /.tab-content -->
		          </div><!-- /.nav-tabs-custom -->
		</div><!--/.row-->
      </div>
  </section>
<!-- jQuery 2.2.3 -->
<script src="/static/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/static/layer/layer.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/adminlte/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
